package cn.kgc.ssm.mapper;

import cn.kgc.ssm.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/3/1
 * @description
 */
public interface UserMapper {


    List<User> selectUsers(String username);

    User getUserByUsername(@Param("username") String username, @Param("password") String md5Pwd);

    void deleteUser(@Param("ids") List<Integer> collectIds);

    void insertUser(User user);

    User selectUser(String username);

    User selectById(Integer id);

    void updateUser(User user);

    void editPwdById(@Param("id") Integer id, @Param("password")String password);
}
